import template from '../../assets/partials/device-list.html';

var $elm = $(template);
$elm.find('table').dataTable({
    sDom: 'rt<"clearfix table-bottom"ilp>',
    // searching: true,
    ordering: true,
    serverSide: false,
    processing: true,
    columns: [{
        data: 'id'
    }, {
        data: 'sn'
    }, {
        data: 'aliseName'
    },{
        render: (data, type, row) => {
            return '<label> 随便<input type="color"></label>';
        }
    }],
    language: {
        emptyTable: '没有数据',
        info: '第 _PAGE_ 页 / 总 _PAGES_ 页，',
        lengthMenu: '每页 _MENU_ '
    },
    pagingType: "full_numbers",
    data:[{
        "id": 1,
        "sn": "CAML10K00284C",
        "aliseName": "啦啦啦"
      }, {
        "id": 2,
        "sn": "G1LQ8CX034301",
        "aliseName": "啦啦啦"
      }]
});
$('#content').append($elm);
